function colorea(){
    document.passForm.Password1.style.borderColor="#5f870e";
}
function checkPass(){
    var password1=document.getElementById('Password1').value;
    var password2=document.getElementById('Password2').value;
    if((password1===password2)&&password1!="")
    {
        document.passForm.Password2.style.borderColor="#5f870e";
        return true;
    }
    else
    {
        document.passForm.Password2.style.borderColor="#FF0000";
        
        return false;
   }
    
}

function validar(){
  if(checkPass())
    {
        document.getElementById('passForm').submit();
    
    }
    else
    {
        alert("Las contraseñas que ingresaste\nno son  validas :C");
    }
}